// @ts-ignore
/* eslint-disable */
import { postFile, postRequest } from '@/utils/postRequest';
import request from '@/utils/request';

//批量上传
export async function batchUpload(params: any) {
  return request('/api/v1/video/batchUpload', {
    method: 'POST',
    params: params,
  });
}

//单个上传
export async function singleVideoFormUpload(params: any) {
  return request('/api/v1/video/formUpload', {
    method: 'POST',
    params: params,
  });
}
//删除视频
export async function deleteVideo(params: any) {
  return request('/api/v1/video/deleteVideo', {
    method: 'POST',
    data: params,
  });
}

//通过ID获取单个视频信息
export async function getOneById(params: any) {
  return request('/api/v1/video/getOneById', {
    method: 'POST',
    params: params,
  });
}

export async function getVideoInfoList(params, data) {
  return request('/api/v1/video/getVideoInfoList', {
    method: 'POST',
    params: params,
    data: data,
  });
}

export async function insertVideo(params) {
  return request('/api/v1/video/insertVideo', {
    method: 'POST',
    data: params,
  });
}

export async function updateVideo(params: any) {
  return request('/api/v1/video/updateVideo', {
    method: 'POST',
    data: params,
  });
}

export async function approveVideo(params: any) {
  return request('/api/v1/video/approveVideo', {
    method: 'POST',
    data: params,
  });
}
export async function changeVideoOrder(params: any) {
  return request('/api/v1/video/changeOrder', {
    method: 'POST',
    data: params,
  });
}
